function ex = cond_logn_exp(x, mu, sigma)

    ex = exp(mu + sigma^2/2).*normcdf((log(x) - mu - sigma^2)/sigma)./normcdf((log(x) - mu)/sigma);

end